#!/usr/bin/env python

from math import e, sin, cos
from bernstein import basis_fun_eval, basis_fun_derivative

def rhs(x):
	return (4.-2*x**2)*sin(x) + 4*x*cos(x)
#	return x**2/e**x

def lhs(j,n,a,b,x):
	return basis_fun_derivative(2,j,n,a,b,x) - basis_fun_eval(j,n,a,b,x)
#	return basis_fun_derivative(2,j,n,a,b,x) + basis_fun_eval(j,n,a,b,x)
